package org.cuit.epoch.seon.combat.states;

import org.cuit.epoch.seon.combat.OrderContext;

// 已支付状态
public class PaidState implements OrderState {
    @Override
    public void pay(OrderContext context) {
        System.out.println("订单已支付，无需重复支付。");
    }

    @Override
    public void cancel(OrderContext context) {
        System.out.println("订单已支付，无法取消。");
    }

    @Override
    public void ship(OrderContext context) {
        System.out.println("订单已发货。");
        context.setState(new ShippedState());  // 转换到已发货状态
    }
}